Continues program execution within a Sub or Function at the procedure line indicated by a label.
Sub や Function などのブロック中で、プログラムの実行行をラベル指定された位置に移動させます。
see Parameters
パラメータを参照
Sub/Function
Sub/Function
statement block
ステートメントブロック
Label1
Label1
Label2:
Label2:
statement block
ステートメントブロック
Exit Sub
Exit Sub
Label1:
Label1:
statement block
ステートメントブロック
GoTo Label2
GoTo Label2
End Sub/Function
End Sub/Function
Use the GoTo statement to instruct Office Basic to continue program execution at another place within the procedure. The position must be indicated by a label. To set a label, assign a name, and then and end it with a colon (":").
GoTo ステートメントは、Office Basic プログラムの実行行を他の位置にジャンプさせる際に使用します。移動先はラベルで指示する必要があります。個々のラベルは、ラベル名に続けてコロンを入力することで指定します。
![]() | You cannot use the GoTo statement to jump out of a Sub or Function.
GoTo ステートメントを使って、Sub や Function などのブロック外へジャンプすることはできません。 |
see Parameters
パラメータを参照